/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Operations.Geometry;

import Operations.*;
import java.awt.image.BufferedImage;

/**
 *
 * @author littlechild
 */
public class OpFliplr implements Operation{

    public BufferedImage operate(BufferedImage image, double[] paras) {
        BufferedImage returnImage=new BufferedImage(image.getWidth(),image.getHeight(),image.getType());
        for(int j=0;j!=image.getHeight();++j) {
            for (int i=0;i!=image.getWidth();++i) {
                returnImage.setRGB(i, j, image.getRGB(image.getWidth()-1-i, j));
            }
        }
        return returnImage;
    }

}
